package com.easylinkin.linkappapi.hcmy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.hcmy.entity.CarManage;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
import java.util.Set;

/**
 * class info :
 *
 * @author hongyikang
 * @date 2021/8/17 15:04
 */
public interface CarManageService extends IService<CarManage> {

    String add(CarManage carManage);

    IPage<CarManage> getPage(Page page, CarManage carManage);

    CarManage getById(Long id);

    String update(CarManage carManage);

    boolean delById(Long id);

    /**
     * 导出内容
     * @param carManage
     * @param request
     * @param response
     */
    void exportData(CarManage carManage, HttpServletRequest request, HttpServletResponse response);

    /**
     * 导入
     * @param file
     * @return
     */
    Map<Integer, String> importData(MultipartFile file);

    void getImportTemplateSpace(HttpServletRequest request, HttpServletResponse response);
}
